package com.fengzai.cglibproxy;


/**
 * Created by  峰仔  on 2017-08-03
 */
public class Test {
    public static void main(String[] args) {
        Zhongjie zhongjie = new Zhongjie();
        //TODO  注意Fangdong 被代理类必须要有无参的构造方法

        Fangdong instance = (Fangdong) zhongjie.getInstance(new Fangdong());
        instance.chuzu();
        System.out.println("---------------------------------------------------------------------");
        Fangdong instance2 = (Fangdong) zhongjie.getInstance2("com.fengzai.cglibproxy.Fangdong");
        instance2.chuzu();
        System.out.println("---------------------------------------------------------------------");
        Fangdong instance3 = (Fangdong) zhongjie.getInstance3(Fangdong.class);
        instance3.chuzu();
    }
}
